
import { axiosGet, axiosPost, axiosPut, axiosDelete } from '/@/api/RequestBase';
import { SqlSugarPagedList, BaseKeywordPageInput } from '/@/api/BaseDto';

import { OptXueYePageInput } from './dto/OptXueYePageInput';
import { OptXueYeOutput } from './dto/OptXueYeOutput';

export type { OptXueYePageInput, OptXueYeOutput, };

const service = 'OptXueYe/'; // 要写后面的斜杠, 不要写前面的斜杠

export const OptXueYeApi = {
	page: (data: BaseKeywordPageInput) => {
		return axiosPost<SqlSugarPagedList<OptXueYeOutput>>(service + 'page', data);
	},
	get: (id: number) => {
		return axiosGet<OptXueYeOutput>(service + `get/${id}`);
	},
}
